<template>
  <div class="homePage">
    <the-header></the-header>
    <el-container class="content">

      <menu-tab></menu-tab>

      <el-main>
        <!-- 表格上面的面包屑 -->
        <el-card>
          <el-breadcrumb>
            <el-breadcrumb-item>首页</el-breadcrumb-item>
            <el-breadcrumb-item
                v-for="(item, index) in $route.matched"
                :key="index">
              {{ item.name }}
            </el-breadcrumb-item>
          </el-breadcrumb>
        </el-card>

        <div class="cont">
          <router-view></router-view>
        </div>

        <the-footer></the-footer>
      </el-main>

    </el-container>
  </div>
</template>

<script>
import TheHeader from "@/components/common/TheHeader";
import TheFooter from "@/components/common/TheFooter";
import MenuTab from "@/components/common/MenuTab";

export default {
  name: 'HomePage',
  components: {
      TheHeader,
      TheFooter,
      MenuTab,
  },
  data () {
    return {
    }
  },
  created () {
  },
  methods: {
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.homePage {
  .content {
    position: absolute;
    width: 100%;
    top: 60px;
    bottom: 0;
    .cont {
      margin-top: 20px;
      margin-block: 20px;
    }
  }
}
</style>
